package qa.ui;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

public class Welcome extends JPanel {
	
	private JLabel atmWelcome;
	private JTextField insertCard;
	private JEditorPane display;
		

	public Welcome() {
		setLayout(null);
		
		atmWelcome = new JLabel("Welcome to E-Bank's ATM in Esbjerg Lufthavn");
		atmWelcome.setHorizontalAlignment(SwingConstants.LEFT);
		atmWelcome.setFont(new Font("TIMES NEW ROMAN", Font.BOLD, 14));
		atmWelcome.setBounds(68, 42, 304, 22);
		add(atmWelcome);
		
		insertCard = new JTextField("Please insert your Credit Card Number");
		insertCard.setFont(new Font("TIMES NEW ROMAN", Font.PLAIN, 16));
		insertCard.setSize(226, 22);
		insertCard.setLocation(100, 100);
		insertCard.addActionListener(
				new ActionListener(){
					public void actionPerformed(ActionEvent event){	
				
						
					}
				}	
			);
			add(insertCard, BorderLayout.NORTH);
	}
	
	public void addActionListener(ActionListener l) {
		insertCard.addActionListener(l);
	}
}
